<?php
abstract class Tpl {
    public function prepare() {
        $this->boid();
        $this->qinpao();
        $this->cup();
        $this->addCondition();
    }
    public function boid() {
        echo "把水煮沸";
    }
    public function cup() {
        echo "倒进杯子";
    }
    abstract public function qinpao();
    abstract public function addCondition();
}